import { axios } from '@/utils/request'

const api = {
  exportUserOrder: '/statistics.data/exportUserOrder',
  exportMerchantOrder: '/statistics.data/exportMerchantOrder',
  mdata: '/statistics.data/mdata',
  udata: '/statistics.data/udata',
  data: '/statistics.data/data',
  survey: '/statistics.data/survey'
}

// 列表记录
export function exportUserOrder (params) {
  return axios({
    url: api.exportUserOrder,
    method: 'get',
    params
  })
}
// 列表记录
export function exportMerchantOrder (params) {
  return axios({
    url: api.exportMerchantOrder,
    method: 'get',
    params
  })
}
// 列表记录
export function mdata (params) {
  return axios({
    url: api.mdata,
    method: 'get',
    params
  })
}

export function udata (params) {
  return axios({
    url: api.udata,
    method: 'get',
    params
  })
}
/**
 * 数据统计主页
 * @param {*} params
 */
export function data (params) {
  return axios({
    url: api.data,
    method: 'get',
    params
  })
}

/**
 * 数据概况
 * @param {*} params
 */
export function survey (params) {
  return axios({
    url: api.survey,
    method: 'get',
    params
  })
}
